package com.qzdsoft.erpcloud.mapper.com;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.qzdsoft.erpcloud.domain.com.Department;
import com.qzdsoft.erpcloud.vo.com.DepartmentInfo;
import com.qzdsoft.vo.PageRequest;

public interface DepartmentQueryMapper  {
	
	long countDepartment(@Param("key") String key, @Param("companyId") Integer companyId);
	
	List<DepartmentInfo> findPageDepartment(@Param("pageRequest") PageRequest request,
            @Param("key") String key,@Param("companyId") Integer companyId);
	
	List<Department> getByCompanyId(@Param("companyId") Integer companyId);
	
	Integer selectDataCount(@Param("name") String name,@Param("companyId") Integer companyId);

    List<Map<String, Object>> selectData(@Param("name") String name, @Param("companyId") Integer companyId);

    Department getByNameCompanyId(@Param("name") String name,@Param("company_id") Integer companyId);
    Department getByNoCompanyId(@Param("no") String no,@Param("company_id") Integer companyId);
}